 document.addEventListener('DOMContentLoaded', function() {
        var mySwiper = new Swiper('.swiper-container', {
            // 配置选项
            loop: true,
            slidesPerView: 1, // 每次显示一个slide（包含3个内容项）
            spaceBetween: 20,
            centeredSlides: true,
            grabCursor: true,
            
            // 分页器
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
            },
            
            // 导航按钮
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
            
            // 滑动效果
            effect: 'slide',
            speed: 600,
            
            // 触摸滑动
            touchEventsTarget: 'container',
            simulateTouch: true,
            touchRatio: 1,
            touchAngle: 45,
            grabCursor: true,
        });
    });